package com.example.bookManagement.Model;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class PageRequest {
    private int currentPage = 1;
    private int pageSize = 10;
    private int offset ;

    public int getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
